package com.bos.data.model;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * create by tanghuihong 2018/6/13
 */
@Entity
@Table(name = "Situation", schema = "dbo", catalog = "userdb")
public class SituationModel {
    private int id;
    private String project_progess;
    private Timestamp sDate;
    private String work_type;
    private String project_address;
    private String project_name;
    private String project_leader;
    private String firstParty;
    private String linkman;
    private Timestamp finish_time;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }



    @Basic
    @Column(name = "project_progess")
    public String getProject_progess() {
        return project_progess;
    }

    public void setProject_progess(String project_progess) {
        this.project_progess = project_progess;
    }

    @Basic
    @Column(name = "sDate")
    public Timestamp getsDate() {
        return sDate;
    }

    public void setsDate(Timestamp sDate) {
        this.sDate = sDate;
    }



    @Basic
    @Column(name = "work_Type")
    public String getWork_type() {
        return work_type;
    }

    public void setWork_type(String work_type) {
        this.work_type = work_type;
    }



    @Basic
    @Column(name = "project_address")
    public String getProject_address() {
        return project_address;
    }

    public void setProject_address(String project_address) {
        this.project_address = project_address;
    }



    @Basic
    @Column(name = "project_name")

    public String getProject_name() {
        return project_name;
    }

    public void setProject_name(String project_name) {
        this.project_name = project_name;
    }


    @Basic
    @Column(name = "project_leader")
    public String getProject_leader() {
        return project_leader;
    }

    public void setProject_leader(String project_leader) {
        this.project_leader = project_leader;
    }

    @Basic
    @Column(name = "firstParty")
    public String getFirstParty() {
        return firstParty;
    }

    public void setFirstParty(String firstParty) {
        this.firstParty = firstParty;
    }

    @Basic
    @Column(name = "linkman")
    public String getLinkman() {
        return linkman;
    }

    public void setLinkman(String linkman) {
        this.linkman = linkman;
    }


    public Timestamp getFinish_time() {
        return finish_time;
    }

    public void setFinish_time(Timestamp finish_time) {
        this.finish_time = finish_time;
    }

    @Basic
    @Column(name = "finish_time")

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        SituationModel that = (SituationModel) o;
        return id == that.id &&
                Objects.equals(project_address, that.project_address) &&
                Objects.equals(sDate, that.sDate) &&
                Objects.equals(work_type, that.work_type) &&
                Objects.equals(project_address, that.project_address) &&
                Objects.equals(project_name, that.project_name) &&
                Objects.equals(project_leader, that.project_leader) &&
                Objects.equals(firstParty, that.firstParty) &&
                Objects.equals(linkman, that.linkman) &&
                Objects.equals(finish_time, that.finish_time);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, project_address, sDate, work_type, project_address, project_name, project_leader, firstParty, linkman, finish_time);
    }
}
